package com.design.mapper;

import com.design.domain.vo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

	// 根据用户名查询用户信息
	List<SysUser> selectUserInfoByUserNameOrPhone(@Param("userName") String userName);

	// 根据手机号查询用户数量
	int selectCountByUserPhone(String userPhone);

	// 插入用户基本信息
	int insertUser(SysUser insertUser);
}
